﻿// =================================================================== 
// 数据访问层接口层(GDIT.Pattern)
//====================================================================
// 文件：IVideoInformationArticle.cs
// 项目名称：学院网站
// 创建时间：2012-08-08
// 负责人：ChenZhiGang
//引用DevExpress.Xpo程序集
// 程序集介绍：视频资讯文章信息数据访问层接口
// ===================================================================
using GDIT.Model;
using DevExpress.Xpo;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace GDIT.Pattern
{
    public interface IVideoInformationArticle
    {

        /// <summary>
        /// 管理员展示页面
        /// </summary>
        /// <returns></returns>
        XPCollection SelectAllVideoyAdmin();

        /// <summary>
        /// 新增加一篇视频资讯
        /// </summary>
        /// <param name="bulletin">需要增加的视频资讯对象</param>
        /// <returns>1：新增成功  0：新增失败</returns>
        int InsertVideoInformationArticle(Mtb_VideoInformationArticle bulletin);

        /// <summary>
        /// 删除一篇视频资讯
        /// </summary>
        /// <param name="bulletin">需要删除的视频资讯对象</param>
        /// <returns>1：新增成功  0：新增失败</returns>
        int DeleteVideoInformationArticle(int id);

        /// <summary>
        /// 更新一篇视频资讯
        /// </summary>
        /// <param name="bulletin">需要更新的视频资讯的对象</param>
        /// <returns>1：新增成功  0：新增失败</returns>
        int UpdateVideoInformationArticle(Mtb_VideoInformationArticle bulletin);

        /// <summary>
        /// 查询所有的视频资讯列表
        /// </summary>
        /// <returns>返回所有的视频资讯列表</returns>
        XPCollection SelectAllVideoInformationArticle();

        /// <summary>
        /// 根据公告Id查询并返回视频资讯单一记录
        /// </summary>
        /// <param name="id">需要查询的视频资讯Id</param>
        /// <returns>返回公告单一记录</returns>
        Mtb_VideoInformationArticle SelectVideoInformationArticleById(int id);

        /// <summary>
        /// 显示置顶视频资讯
        /// </summary>
        /// <returns>返回置顶视频资讯列表</returns>
        XPCollection SelectVideoInformationArticleByTop();

        /// <summary>
        /// 显示重点视频资讯
        /// </summary>
        /// <returns>返回重点视频资讯列表</returns>
        XPCollection SelectVideoInformationArticleByImportant();

        /// <summary>
        /// 显示首页的视频资讯内容
        /// </summary>
        /// <returns></returns>
        XPCollection SelectVideoInformationArticleByTopAndImportant();

        /// <summary>
        /// 设置视频资讯为置顶显示
        /// </summary>
        /// <returns>1：更新成功  0：更新失败</returns>
        int UpdateBulletinArticleByTop(Mtb_VideoInformationArticle bulletin);

        /// <summary>
        /// 设置视频资讯为重点显示
        /// </summary>
        /// <returns>1：更新成功  0：更新失败</returns>
        int UpdateBulletinArticleByImportant(Mtb_VideoInformationArticle bulletin);
    }
}
